<%@ Control Language="C#" AutoEventWireup="true" CodeFile="SearchMe.ascx.cs" Inherits="MyCustomModules_SearchMe" %>


<asp:UpdatePanel ID="UpdatePanelPersonal" UpdateMode="Conditional" runat="server">
    <ContentTemplate>
        <div>
            <asp:DropDownList ID="drpFilter" runat="server">
                <asp:ListItem Text="-- Search by --" Value="0"></asp:ListItem>
                <asp:ListItem Text="Name" Value="1"></asp:ListItem>
                <asp:ListItem Text="PAN" Value="2"></asp:ListItem>
                <asp:ListItem Text="Email" Value="3"></asp:ListItem>
                <asp:ListItem Text="Phone" Value="4"></asp:ListItem>
            </asp:DropDownList>
            <asp:TextBox ID="txtSearchFilter" runat="server"></asp:TextBox>
            <asp:Button ID="btnSearch" runat="server" Text="Search" OnClick="btnSearch_Click" />
        </div>
        <div>
            <asp:DataGrid ID="dgUsers" runat="server" AutoGenerateColumns="false" GridLines="none" Width="100%" >
                <Columns>
                    <asp:TemplateColumn HeaderText="Customer Name" HeaderStyle-Font-Bold="true" HeaderStyle-BackColor="lightgray" >
                        <ItemTemplate>
                            <asp:HyperLink runat="server" Text='<%# Eval("name") %>' NavigateUrl='<%#GetRefreshURL(Eval("UserGUID")) %>'></asp:HyperLink>
                        </ItemTemplate>    
                    </asp:TemplateColumn>
                </Columns>
            </asp:DataGrid>
            <br />
        </div>
    </ContentTemplate>
</asp:UpdatePanel>